package com.wendy.thirdpartyaccess;

/**
 * @author zhuwending
 */
public class SocialConstants {

    public static final String CODE = "code";
    /**
     * 获取 token 的 API
     */
    public static final String ACCESS_TOKEN_URL = "https://graph.qq.com/oauth2.0/token";
    /**
     * authorization_code
     */
    public static final String GRANT_TYPE = "authorization_code";
    /**
     * client_id
     */
    public static final String CLIENT_ID = "101386962";
    /**
     * client_secret
     */
    public static final String CLIENT_SECRET = "2a0f820407df400b84a854d054be8b6a";
    /**
     * 腾讯回调地址
     */
    public static final String REDIRECT_URL = "http://www.ictgu.cn/login/qq";
    /**
     * 获取 OpenId 的 API 地址
     */
    public static final String OPENID_URL = "https://graph.qq.com/oauth2.0/me?access_token=";
    /**
     * 获取 token 的地址拼接
     */
    public static final String TOKEN_ACCESS_API = "%s?grant_type=%s&client_id=%s&client_secret=%s&code=%s&redirect_uri=%s";
    /**
     * 获取 QQ 登录信息的 API 地址
     */
    public static final String USER_INFO_URL = "https://graph.qq.com/user/get_user_info";
    /**
     * 获取 QQ 登录信息的地址拼接
     */
    public static final String USER_INFO_API = "%s?access_token=%s&oauth_consumer_key=%s&openid=%s";

    /**
     * 微信appId
     */
    public static final String APP_ID = "wx9936fdb47a0effea";

    /**
     * 微信appSecret
     */
    public static final String APP_SECRET = "8e66793c9f2558a73beaf5c032abb1d3";

    public static final String URL_GET_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?openid=";

    public static final String REFRESH_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?";

    /**
     * 微信获取授权码的url
     */
    public static final String URL_AUTHORIZE = "https://open.weixin.qq.com/connect/qrconnect?";

    /**
     * 微信获取accessToken的url
     */
    public static final String URL_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?";
}
